﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace tab2sql.Data
{
    public partial class selectionBox : UserControl
    {
        public selectionBox()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string choice = checkedListBox1.SelectedItem.ToString();
            TextBox tb = (TextBox)this.Parent.Controls["OutStr"];
            tb.Text = choice;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();
        }
    }
}
